package com.spzx.controller;

import com.spzx.common.core.web.controller.BaseController;
import com.spzx.common.core.web.page.TableDataInfo;
import com.spzx.product.api.domain.DTO.SkuDTO;
import com.spzx.service.ProductSkuService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/list")
public class ProductSkuListController extends BaseController {
    @Resource
    ProductSkuService productSkuService;
    @GetMapping("/skuList/{pageNum}/{pageSize}")
    @Operation(summary = "分页商品列表")
    public TableDataInfo skuList(@PathVariable("pageNum")int pageNum , @PathVariable("pageSize") int pageSize , SkuDTO skuDTO){
        startPage();
        System.out.println(skuDTO.getCategory3Id());
        return getDataTable(productSkuService.skuList(skuDTO));
    }
}
